import request from '@/utils/request'

// 查询出库计划列表
export function listCcChukuInfoPlan(query) {
  return request({
    url: '/business/CcChukuInfoPlan/list',
    method: 'get',
    params: query
  })
}

// 查询出库计划详细
export function getCcChukuInfoPlan(id) {
  return request({
    url: '/business/CcChukuInfoPlan/' + id,
    method: 'get'
  })
}

// 新增出库计划
export function addCcChukuInfoPlan(data) {
  return request({
    url: '/business/CcChukuInfoPlan',
    method: 'post',
    data: data
  })
}

// 修改出库计划
export function updateCcChukuInfoPlan(data) {
  return request({
    url: '/business/CcChukuInfoPlan',
    method: 'put',
    data: data
  })
}

// 删除出库计划
export function delCcChukuInfoPlan(id) {
  return request({
    url: '/business/CcChukuInfoPlan/' + id,
    method: 'delete'
  })
}
// 生成出库单
export function handleUp(id) {
  return request({
    url: '/business/CcChukuInfoPlan/handleUp/' + id,
    method: 'delete'
  })
}
